import java.util.Scanner;

public class HomeWorkDemo03 {
    public static void main(String[] args) {
        int num = new Scanner(System.in).nextInt();
        int b = num / 100;
        int g = num % 10;
        if (b == g) {
            System.out.println("回文数");
        }


    }

}
